import type { MemberInfo, ProfileResult } from "@/types/member"
import { http } from "@/utils/request"

//获取会员中心-个人信息
export const memberProfile = () => {
  return http<ProfileResult>({
    method: 'GET',
    url: '/member/profile'
  })
}

//修改个人信息
export const memberProfileChange = (data: MemberInfo) => {
  return http<ProfileResult>({
    url: '/member/profile',
    method: 'PUT',
    data
  })
}